{% extends '::base.html.twig' %}

{% block body %}
	{{ parent() }}
		<h1>Update Profile</h1>
		<br />
		<form action="{{ path('_profile') }}" method="post" {{ form_enctype(form) }}>
			<table class="ProfileTable">
				<col width="25%">
				<col width="25%">
				<col width="50%">
				<tr>
					<td class="registerText"> User Name:</td>
					<td>{{ form_widget( form.username ) }}</td>
					<td class="info" id="uNameInfo">{{ form_errors( form.username ) }}</td>
				</tr>
				<tr>
					<td class="registerText">Email:</td>
					<td>{{ form_widget( form.email ) }}</td>
					<td class="info" id="emailInfo">{{ form_errors( form.email ) }}</td>
				</tr>
				<tr>
					<td class="registerText">First name:</td>
					<td>{{ form_widget( form.fname ) }}</td>
					<td class="info" id="fNameInfo">{{ form_errors( form.fname ) }}</td>
				</tr>
				<tr>
					<td class="registerText">Last name:</td>
					<td>{{ form_widget( form.lname ) }}</td>
					<td class="info" id="lNameInfo">{{ form_errors( form.lname ) }}</td>
				</tr>
				<tr>
					<td class="registerText">Gender:</td>
					<td>{{ form_widget( form.gender ) }}</td>
					<td width="1%"> </td>
				</tr>
				<tr>
					<td class="registerText">Birth Year:</td>
					<td>{{ form_widget( form.birth ) }}</td>
					<td class="info" id="bYearInfo"></td>
				</tr>
			</table>
			<br /> 
			<div style="text-align: center">
				<input id="updateButton" class="grey-button" name="Update" type="submit" value="Update" style="padding: 3px" />
			</div>
			
			{{ form_rest(form) }}
		</form>  
 {% endblock %}

